using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class VomitGrass : MonoBehaviour
{
    
    public GameObject characterTalk;

    void OnEnable(){
        EventHandler_Prop.CharacterGetVomitGrassEvent += OnCharacterGetVomitGrassEvent;
    }

    void OnCharacterGetVomitGrassEvent(){
        characterTalk?.SetActive(true);
    }

    void OnDisable(){
        EventHandler_Prop.CharacterGetVomitGrassEvent -= OnCharacterGetVomitGrassEvent;
        characterTalk?.SetActive(false);
    }
}
